<script>
export default {
  name: "History",
  props: {
    item: {
      type: Object,
      default: () => ({}),
    },
  },
};
</script>
<template>
  <!--历史记录-->
  <div class="network-box">
    <div class="head">
      <div class="head-title ellipsis-text-1">
        {{ item.content.title }}
      </div>
      <div class="head-time">{{ item.time }}</div>
    </div>
    <div class="content">
      {{ item.content.value }}
    </div>
  </div>
</template>

<style lang="scss" scoped>
.network-box {
  padding: 8px 18px 12px;
  border-radius: 5px;
  background-color: #f1f1f1;
  word-break: break-all;

  .head {
    display: flex;
    font-size: 14px;
    border-bottom: 1px solid #c9d3d7;
    justify-content: space-between;
    padding-bottom: 7px;

    .head-title {
      color: #333333;
      width: 0;
      flex: 1;

      padding-right: 50px;
    }

    .head-time {
      color: #666666;
    }
  }

  .content {
    padding-top: 11px;
    font-size: 14px;
    color: #333333;
  }
}
</style>
